package com.zp.business.entity.clinicOrder.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 门诊项目明细业务对象
 *
 * @author zhang peng
 * @ date 2024-01-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ClinicOrdersCostBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 门诊记录
     */
    @NotBlank(message = "门诊记录不能为空", groups = {AddGroup.class, EditGroup.class})
    private String clinicId;

    /**
     * 病人信息Id
     */
    @NotBlank(message = "病人信息Id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String patientId;

    /**
     * $column.columnComment
     */
    @NotBlank(message = "$column.columnComment不能为空", groups = {AddGroup.class, EditGroup.class})
    private String ordersId;

    /**
     * 项目类型
     */
    @NotBlank(message = "项目类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String itemClass;

    /**
     * 诊疗项目名称
     */
    private String packItemName;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String itemName;

    /**
     * 项目编码
     */
    private String itemCode;

    /**
     * 价表ID
     */
    @NotBlank(message = "价表ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String priceId;

    /**
     * 网络价格
     */
    private BigDecimal networkPrice;

    /**
     * 进货价格
     */
    private BigDecimal tradePrice;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 应收
     */
    private BigDecimal costs;

    /**
     * 实收
     */
    private BigDecimal charges;

    /**
     * 舍入差额
     */
    private BigDecimal diffCost;

    /**
     * 项目数量
     */
    @NotNull(message = "项目数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal num;

    /**
     * 医保自付比例
     */
    private BigDecimal medicalScale;

    /**
     * 收费号
     */
    private String feesNo;

    /**
     * 门诊费用分类
     */
    @NotBlank(message = "门诊费用分类不能为空", groups = {AddGroup.class, EditGroup.class})
    private String classOnRcpt;

    /**
     * 核算项目科目
     */
    @NotBlank(message = "核算项目科目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String classOnReckoning;

    /**
     * 会计科目
     */
    @NotBlank(message = "会计科目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String subjCode;

    /**
     * 收费系数
     */
    private BigDecimal coefficient;

    /**
     * 规格
     */
    private String spec;

    /**
     * 单位
     */
    private String unit;

    /**
     * 机构ID
     */
    @NotBlank(message = "机构ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 用药天数
     */
    private Integer abidance;

    /**
     * 途径
     */
    private String channel;

    /**
     * 频次
     */
    private String performFreq;

    /**
     * 单次用量
     */
    private BigDecimal singleDosage;

    /**
     * 用量单位
     */
    private String singleUnitName;

    /**
     * 医保审核标志1审核通过，2未审核
     */
    private String medicalVerifyFlag;

    /**
     * 医保审核人
     */
    private String medicalVerifyPerson;

    /**
     * 医保审核时间
     */
    private Date medicalVerifyDate;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 医保是否上传 Y上传 N未上传
     */
    private String isUpload;

    /**
     * orders_id 集合
     */
    private List<String> ordersIdArray;

    /**
     * 处方、检查、检验、治疗项目明细表id
     */
    private String applyItemId;

    /**
     * 申请单号
     */
    private String applyNo;

    /**
     * 诊疗项目id
     */
    private String clinicItemId;


    /**
     * 收费标志
     */
    private String chargeFlag;

    /**
     * 发药标志
     */
    private String confirmFlag;

}
